﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PoC.Shopkeeper.Common;
using PoC.Shopkeeper.EntityModel;

namespace PoC.Shopkeeper.Data
{
    public interface INewsRepository
    {
        News GetNewsById(string id);

        IList<News> GetNewsByCategoryId(string categoryId);
        IList<News> GetAllNews();
        IList<News> GetNewsInRange(string categoryId, DateTime startDate, DateTime endDate);

        void AddNews(string id, string newsContent, DateTime publishedDate);
        void AddNews(News news);
    }
}
